package com.zhongyouyun.admin.service;

import com.zhongyouyun.admin.model.FileModel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongyouyun.other.file.Bean.FileBeanWork;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Author: shenyi
 * @Date: 2022-04-29
 * @Description: 服务类
 */

public interface FileService extends IService<FileModel> {

    IPage<FileModel> selectPage(Page<FileModel> userPage, QueryWrapper<FileModel> queryWrapper);

    List<FileModel> selectList(QueryWrapper<FileModel> queryWrapper);

    public  void ImpdownloadFile(FileModel fileModel, HttpServletRequest request, HttpServletResponse response);

    FileBeanWork delFile(int id);

}
